package com.github.arrow.config;

import com.dangdang.ddframe.job.reg.zookeeper.ZookeeperConfiguration;
import lombok.Data;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.NestedConfigurationProperty;

import java.util.Map;


/**
 *
 * @author Stephen
 * @since 2017-12-14
 */
@Data
@ToString
@ConfigurationProperties(prefix = "elastic")
public class ElasticProperties {

    private String serverList;
    private String namespace;

    /**
     * zookeeper配置
     */
    @NestedConfigurationProperty
    private ZookeeperConfiguration zookeeper;

    private Map<String, ShardingJob> simples;
    private Map<String, ShardingJob> dataflows;
    private Map<String, ShardingJob> scripts;

}
